package sse.ustc;

import java.io.IOException;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketAddress;

public class client extends Thread{
	Socket socket;
	public static final int timeOut =2000;
	public void run(){
		
		socket = new Socket();
		SocketAddress socketAddress = new InetSocketAddress("192.168.7.128", 9000);
	
		try {
			socket.connect(socketAddress, timeOut);
		
			System.out.print("success");
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	public static void main(String[] args){
		Thread clThread= new client();
		clThread.start();
	}

}
